package de.jonasblatt.networkapi.rpi.network.commands.server;

import de.jonasblatt.networkapi.rpi.network.commands.ServerCommand;
import de.jonasblatt.networkapi.rpi.networkapi.rpi.client.Client;

public class SCSendGpioValue implements ServerCommand {

	private boolean value;
	private String gpio;

	public SCSendGpioValue(String gpio, boolean value) {
		this.value = value;
		this.gpio = gpio;
	}

	@Override
	public void execute(Client client) {
		client.cl_onGpioValue(this.gpio, this.value);
	}

}
